<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  <script type="text/javascript">
   var d=new Date();
   var time=d.getHours();
   if(time<10){
	   document.write("good morning <br>");
   }
   else if(time>=10 && time<=16){
	    document.write("good day <br>");
   }
   else{
	  document.write("Hello word <br>");
   }
   
   var theDay=d.getDay();
   //document.write(theDay);
   switch(theDay){
	   case 1:
	     document.write("星期一");
		 break;
	   case 2:
	     document.write("星期二");
		 break;
	  case 3:
	     document.write("星期三");
		 break;
	  case 4:
	     document.write("星期四");
		 break;
	  case 5:
	     document.write("星期五");
		 break;
	  case 6:
	     document.write("星期六");
		 break;
	case 7:
	     document.write("星期日");
		 break;
   }
   alert("警告");
   var bo=confirm("文本");
    document.write("<br>"+bo);
   key=prompt("文本","默认值");
      document.write("<br>");
   document.write(key);
  </script>
 </body>
</html>
